cmake_minimum_required( VERSION 2.8 )

project( ArtOfSequence )

# Make sure we use UNICODE.
add_definitions(-DUNICODE -D_UNICODE)

# Use relative paths
# This is mostly to reduce path size for command-line limits on windows
if(WIN32)
  message( "Using relative paths (where possible) ...")
  # This seems to break Xcode projects so definitely don't enable on Apple builds
  set(CMAKE_USE_RELATIVE_PATHS true)
  set(CMAKE_SUPPRESS_REGENERATION true)
endif()

set( CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMake )

set( BUILD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Build )

set( EXECUTABLE_OUTPUT_PATH     ${BUILD_DIR} )
set( LIBRARY_OUTPUT_PATH        ${BUILD_DIR} )


add_subdirectory( aosl ) # AOSL files
add_subdirectory( tools ) # Tools projects
add_subdirectory( players ) # Players projects
